POV-Ray : Newsgroups : povray.general : macros returning values : Re: macros returning values Server Time
5 Aug 2024 14:12:13 EDT (-0400)
  Re: macros returning values  
From: TinCanMan
Date: 6 Sep 2002 19:54:04
Message: <3d79401c$1@news.povray.org>
>   And with that style it's unusable in situations like:
>
> #declare Value = 2*MyMacro(a)+5*MyMacro(b);

Of course not, but it is useful in different situations.  For example in my
mobius macros, one of the macro returns position, direction and normal
vectors for a specific spot on a mobius surface, ie, it returns three
different values.  In this type of situation it is usuable and necessary.

-tgq


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.